package com.atguigu.springcloud;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * @author timiv
 */
@SpringBootApplication
@EnableConfigServer
@Slf4j
public class MainAppConfigCenter3344 {

    public static void main(String[] args) {
        SpringApplication.run(MainAppConfigCenter3344.class,args);
        log.info("\n url:http://localhost:3344/{branch}/{application}-{profile}.yml","master","config","dev");
        log.info("\n 引入bus总线后执行curl -X POST http://localhost:3344/actuator/bus-refresh方法来全局广播刷新配置信息");
        log.info("\n 引入bus总线后执行curl -X POST http://localhost:3344/actuator/bus-refresh/{applicationName}:{port}方法来指定服务通知刷新配置信息");
        //curl -X POST http://localhost:3344/actuator/bus-refresh/config-client:3355 来通知3355端口的服务刷新配置，3366不会更新，此通知为指定服务通知
        //curl -X POST http://localhost:3344/actuator/bus-refresh 3355、3366配置都会刷新,此通知为全局通知
    }
}
